package com.seleniti.enpareja.android;

import android.content.Context;
import android.widget.Toast;

/**
 * Comunication between web and android
 * 
 * @author Jesús Lunar Pérez
 *
 */
public class WebAppInterface {
	Context mContext;

	/** Instantiate the interface and set the context */
	WebAppInterface(Context c) {
		mContext = c;
	}

	/** Show a toast from the web page */
	// @JavascriptInterface //Para versiones 17 o superior
	public void showToast(String toast) {
		Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
	}
}